<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Sugar</title>
</head>

<body>
  <script>

    // 普通函数
    const fn = () => {
      return 111;
    };
    const fnRes = fn();
    // 直接获取返回值
    console.log('fnRes', fnRes);    //  111

    // async 函数
    const asyncFn = async () => {
      return 222;
    };

    const asyncFnRes = asyncFn();
    // 返回值会被包装成 Promise 对象的值
    console.log('asyncFnRes', asyncFnRes);   // Promise {<fulfilled>: 222}

  </script>
</body>

</html>